<template>
  <div>
    <ZgEdit
      ref="dialog"
      :columns="columns"
      :formulas="formulas"
      :inputClick="inputClick"
      validUrl=""
      saveUrl=""
      :view="view"
      @ok="$emit('ok')">
    </ZgEdit>
  </div>
</template>
<script>
export default {
  data () {
    return {
      view: {
        width: '60%',
        top: '3%',
        title: '新增'
      },
      columns: [
         { name: '评分模型', code: 'companyName', divider: '基础信息', compType: '单行文本', isNeed: false, offset: 0, span: 12, defaultVal: '请输入评分模型' },
         { name: '评分周期', code: 'companyName', compType: '单行文本', isNeed: false, offset: 0, span: 12, defaultVal: '请输入评分周期（月为单位）' }
      ],
      formulas: []
    }
  },
  methods: {
    open () {
      this.$refs.dialog.open()
    },
    inputClick (t) {
      alert(JSON.stringify(t))
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
